<template>
  <div v-show="show">123456</div>
  <button @click="isShow">切换</button>
</template>

<script setup>
import { ref, reactive } from "vue";
const show = ref(true);
const isShow = () => (show.value = !show.value);
console.log(show);
</script>
